package prim;

import photon.Photon;
import ray.Ray;

public class Primitive
{
    
    protected double[] origin;
    public double[] getOrigin() { return this.origin; }
    public void setOrigin(double[] origin) { this.origin = origin; }
    
    protected double[] color;
    public double[] getColor() { return this.color; }
    public void setColor(double[] col) { this.color = col; }
    
    protected double reflection;
    public double getReflection() { return this.reflection; }
    public void setReflection(double refl) { this.reflection = refl; }
    
    public Primitive()
    {
        this.origin = new double[3];
        this.color = new double[3];
        this.reflection = 0.0;
    }
    
    
    public double[] getColor(double[] pos)
    {
        return null;
    }
    
    public double[] getNormal(double[] pos)
    {
        return null;
    }
    
    public double[] getPosInside(
            double t0, 
            double t1, 
            double t2)
    {
        return null;
    }
    
    public double getIntersectT(Ray ray)
    {
        return Double.MAX_VALUE;
    }
    
    public void absorbPhoton(
            Photon photon, 
            double[] intersectPoint)
    {
        
    }
    
    public void destroy()
    {
        
    }
    
}
